package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.CuisineDao;
import com.cn.wanxi.dao.impl.CuisineImpl;
import com.cn.wanxi.model.CuisineModel;
import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.service.CuisineService;

import java.util.List;

public class CuisineServiceImpl implements CuisineService {
    @Override
    public String add(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public String update(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public String delete(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel findAll(CuisineModel cuisineModel) {
        CuisineDao cuisineDao=new CuisineImpl();
        return new ResultModel(0, "", cuisineDao.findAll(cuisineModel), cuisineDao.count(cuisineModel));
    }

    @Override
    public CuisineModel findById(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public int count(CuisineModel cuisineModel) {
        return 0;
    }
}
